
const resource = {
    //开启命名空间，独立模块
    namespaced:true,
    state:{
        resource_data:'' || localStorage.getItem('resourceData') ,
        // resource_id:'' || localStorage.getItem('r_resourceId') ,
        // resource_name:'' || localStorage.getItem('r_resourceName'),
        // r_url:'' || localStorage.getItem('r_url'),
        // r_fid:'' || localStorage.getItem('r_fid'),
        // r_id:'' || localStorage.getItem('r_id')
    },
    getters:{
        // resourceId: (state) => state.resource_id,
        // resourceName: (state) => state.resource_name,
        resourceData: (state) => state.resource_data,
        // rUrl: (state) => state.r_url,
        // rFid: (state) => state.r_fid,
        // rId: (state) => state.r_id,
    },
    mutations:{
        // handleUserData:(state,user_data)=>{
        //     state.user_data = user_data;
        // }
    },
    actions:{

    }
}

export default resource